package com.blog.effective.note3;

import java.io.Serializable;

/**
 * @author 张俊强~.
 * @func 账号类(添加静态方法).
 * @date 2017/11/1 11:40.
 */
public class AccountInfo implements Serializable {
    public static final long serialVersionUID = 42L;
    private transient String loginAccount;
    private String loginPsw;

    private static String loginAddr="福州";


    public AccountInfo(String loginAccount,String loginPsw,String loginAddr){
        this.loginAccount=loginAccount;
        this.loginPsw=loginPsw;
        this.loginAddr=loginAddr;
    }

    @Override
    public String toString() {
        return "AccountInfo{" +
                "loginAccount='" + loginAccount + '\'' +
                ", loginPsw='" + loginPsw + '\'' +
                ", loginAddr='" + loginAddr + '\'' +
                '}';
    }
}
